//-
  ztncui - ZeroTier network controller UI
  Copyright (C) 2017-2021  Key Networks (https://key-networks.com)
  Licensed under GPLv3 - see LICENSE for details.

extends users_layout

block users_content
  if user === null
    .alert.alert-warning
      strong 没有这样的用户

  else if self_delete === true
    .alert.alert-danger
      strong 你不能删除你自己

  else if deleted
    .alert.alert-success
      strong #{user.name} 被删除

  else
    .alert.alert-danger
      strong 警告无法撤消删除用户
    form(method='POST' action='')
      button.btn.btn-danger(type='submit', name='delete' value='delete') 删除 #{user.name}
      = ' '
      a.btn.btn-default(href='/users', name='cancel', role='button') 取消

  if errors
    ul
      for err in errors
        li!= err.msg
